<?php

class PopupModel extends BaseModel
{
    var $table = 'popup';
    var $prikey = 'id';
    var $_name = 'popup';

    //设置常量配置 弹窗状态
    const ON  = 'on';
    const OFF = 'off';
    //设置常量配置 选择类型
    const BANNER = 'banner';
    const THEME  = 'theme';

    const VIEW_HOMEPAGE     = 'view_homepage';  //首页
    const VIEW_CATEGORY     = 'view_category';  //分类页
    const VIEW_WISH_LIST    = 'view_wish_list';    //心愿单页
    const VIEW_MY            = 'view_my';            //我的页
    const VIEW_ORDER_LIST   = 'view_order_list';  //订单页
    const VIEW_GOODS_LIST   = 'view_goods_list';  //商品列表页
    const VIEW_BANNER_LIST  = 'view_banner_list';    //banner列表页
    const VIEW_THEME_LIST   = 'view_theme_list';      //主题页


    //设置映射关系
    public static $statusValue = array(
        self::ON  => '开启',
        self::OFF => '关闭',
    );

    public static $typeValue = array(
        self::BANNER => 'banner',
        self::THEME  => '主题'
    );

    public static $keywordValue = array(
        self::VIEW_HOMEPAGE     => '首页',
        self::VIEW_CATEGORY     => '分类',
        self::VIEW_WISH_LIST    => '心愿单列表',
        self::VIEW_MY            => '我的',
        self::VIEW_ORDER_LIST   => '订单列表',
        self::VIEW_GOODS_LIST   => '商品列表',
        self::VIEW_BANNER_LIST  => 'banner列表',
        self::VIEW_THEME_LIST   => '专题列表',
    );




}